<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<title>[%$ESPCMS_SOFT_TITLE%]</title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_public.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_all.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_framework.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_select.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/pageload.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/file.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery-ui.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.cookie.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/md5.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/json.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/bootstrap.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/lngpack_cn.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_form.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_formvalidation.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_function.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_tool.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_batch.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_tab.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/iframeResizer.contentWindow.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/nprogress.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_colorpicker.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_multiple.js"></script>
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]admin/css/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
			var ADMIN_DIRNAME="[%$ESPCMS_ADMIN_DIRNAME%]";
			$(document).ready(function () {
				//banpageKey();
				//权限选择
				$('#authority_select').select_checkbox_link();
				$('input[type=checkbox],input[type=radio]').espcms_checkbox();
				//标签提示
				$("[placeholder]").tooltip();
				//验证表单
				$("#espcms_saveInfo").espcms_formvalidation({focusName: "#[%$first_field%]"});
				$('.espcms_pic_onlyList').picInputClear();
				$('#espcms_saveInfo').ajaxForm({
					type: 'POST',
					url: '[%$link.save%]',
					dataType: 'json',
					beforeSubmit: function () {
						parent.espcms_are_loading();
					},
					success: function (data) {
						parent.$("#espcms_are_loading").dialog("close");
						if (data.code === 'true') {
							parent.$.espcms_sticky(data.message, {'autoclose': 3000});
							[%if $config_category_id>1%]
							parent.$(this).espcms_window_tab('close', {'iframeName': '[%$iframes_name%]'});
							[%/if%]
						} else {
							parent.$("body").append(data.data);
							var botton = [
								{
									text: "[%pack:botton_pack-espcms_botton_colse%]",
									class: "btn btn-lightgray",
									click: function () {
										parent.$(this).dialog("close");
										[%if $config_category_id>1%]
										parent.$(this).espcms_window_tab('close', {'iframeName': '[%$iframes_name%]'});
										[%/if%]
									}
								}
							];
							parent.espcms_public_dialog(data.domid_name, botton);
						}
					}
				});
				$('.espcms_save_cancel').espcms_window_tab('closeTab');
				load_tabclick('.tab_click');

				$('.espcms_demo_mail_send').unbind('click').bind('click', function () {
					var EMAIL_SEND_TYPE = $('#EMAIL_SEND_TYPE').val();
					var EMAIL_SMTP_HTTP = $('#EMAIL_SMTP_HTTP').val();
					var EMAIL_SMTP_PORT = $('#EMAIL_SMTP_PORT').val();
					var EMAIL_SEND_MAIL = $('#EMAIL_SEND_MAIL').val();
					var EMAIL_USERNAME = $('#EMAIL_USERNAME').val();
					var EMAIL_PASSWORD = $('#EMAIL_PASSWORD').val();

					var dialog_html = '<div id="espcms_are_del_dialog" title="[%pack:public_pack-espcms_dialog_title%]" class="displaynone">' +
						'<p><span class="espcms_icon_fa espcms_icon_fa-exclamation-circle" style="float:left;margin:0 3px 0px 0;padding-top:4px;"></span>[%pack:setting_pack-espcms_setting_send_mail_mess%]</p>' +
						'</div>';
					parent.$("body").append(dialog_html);
					var botton = [
						{
							text: "[%pack:setting_pack-espcms_setting_send_mail_button_ok%]",
							class: "btn btn-danger",
							click: function () {
								$.ajax({
									type: "post",
									url: '[%$link.senddemomail%]',
									global: false,
									dataType: 'json',
									data: {
										'EMAIL_SEND_TYPE': EMAIL_SEND_TYPE,
										'EMAIL_SMTP_HTTP': EMAIL_SMTP_HTTP,
										'EMAIL_SMTP_PORT': EMAIL_SMTP_PORT,
										'EMAIL_SEND_MAIL': EMAIL_SEND_MAIL,
										'EMAIL_USERNAME': EMAIL_USERNAME,
										'EMAIL_PASSWORD': EMAIL_PASSWORD
									},
									success: function (data) {
										if (data.code === 'true') {
											parent.$.espcms_sticky(data.message, {'autoclose': 1500});
										} else {
											parent.$.espcms_sticky('[%pack:setting_pack-espcms_setting_send_mail_mess_no%]', {'autoclose': 1500});
										}
									}
								});
								parent.$(this).dialog("close");
							}
						},{
							text: "[%pack:setting_pack-espcms_setting_send_mail_button_no%]",
							class: "btn btn-lightgray",
							click: function () {
								parent.$(this).dialog("close");
							}
						}
					];
					parent.espcms_public_dialog('espcms_are_del_dialog', botton, 630);
					return false;
				});
			});
		</script>
		<script type="text/javascript" src="[%ESPCMS_URL%]espcms_includes/ueditor/ueditor_config.js"></script>
		<script type="text/javascript" src="[%ESPCMS_URL%]espcms_includes/ueditor/ueditor.js"></script>
		<script type="text/javascript" src="[%ESPCMS_URL%]espcms_includes/ueditor/seapoa/seapoaaddpic.js"></script>
		<script type="text/javascript" src="[%ESPCMS_URL%]espcms_includes/ueditor/seapoa/seapoaaddvideo.js"></script>
		<script type="text/javascript" src="[%ESPCMS_URL%]espcms_includes/ueditor/seapoa/seapoaaddfilelink.js"></script>
	</head>

	<body class="espcms_style_all">
		<div class="main">
			<div class="espcms_center_content_list">
				<!--正文-->
				<div class="panel">
					<div class="panel-body form_bottom_page">
						<form class="form-horizontal admin-form" id="espcms_saveInfo" action="[%$link.save%]">
							<input type="hidden" name="token_key" id="token_key" value="[%$token.token_key%]"/>
							<input type="hidden" name="token_name" id="token_name" value="[%$token.token_name%]"/>
							[%if $config_category_id==1%]
							<input type="hidden" name="config_name" value="[%pack:setting_pack-espcms_setting_type_1%]"/>
							<div class="section-divider mb40"><span>[%pack:setting_pack-espcms_setting_type_1%]</span></div>
							[%elseif $config_category_id==2%]
							<input type="hidden" name="config_name" value="[%pack:setting_pack-espcms_setting_type_2%]"/>
							<div class="section-divider mb40"><span>[%pack:setting_pack-espcms_setting_type_2%]</span></div>
							[%elseif $config_category_id==3%]
							<input type="hidden" name="config_name" value="[%pack:setting_pack-espcms_setting_type_3%]"/>
							<div class="section-divider mb40"><span>[%pack:setting_pack-espcms_setting_type_3%]</span></div>
							[%elseif $config_category_id==4%]
							<input type="hidden" name="config_name" value="[%pack:setting_pack-espcms_setting_type_4%]"/>
							<div class="section-divider mb40"><span>[%pack:setting_pack-espcms_setting_type_4%]</span></div>
							[%elseif $config_category_id==5%]
							<input type="hidden" name="config_name" value="[%pack:setting_pack-espcms_setting_type_5%]"/>
							<div class="section-divider mb40"><span>[%pack:setting_pack-espcms_setting_type_5%]</span></div>
							[%elseif $config_category_id==7%]
							<input type="hidden" name="config_name" value="[%pack:setting_pack-espcms_setting_type_7%]"/>
							<div class="section-divider mb40"><span>[%pack:setting_pack-espcms_setting_type_7%]</span></div>
							[%elseif $config_category_id==8%]
							<input type="hidden" name="config_name" value="[%pack:setting_pack-espcms_setting_type_8%]"/>
							<div class="section-divider mb40"><span>[%pack:setting_pack-espcms_setting_type_8%]</span></div>
							[%/if%]

							[%forlist from=$setting key=i%]
								[%if $setting[i].config_type=='string'%]
								<div class="form-group [%$setting[i].config_name%] [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label">[%$setting[i].config_title%]</label>
									<div class="col-sm-9">
										<input type="text" name="[%$setting[i].config_name%]" value="[%$setting[i].config_value%]" class="form-control" id="[%$setting[i].config_name%]" placeholder="[%$setting[i].config_content%]" title="[%$setting[i].config_content%]" [%$setting[i].link_validation%][%if $setting[i].config_isvalidation==0%] data-isvalidation="true"[%/if%][%if $setting[i].config_minlength>0%] data-validation-minlength="[%$setting[i].config_minlength%]"[%/if%][%if $setting[i].config_maxlength>0%] data-validation-maxlength="[%$setting[i].config_maxlength%]"[%/if%][%if $setting[i].config_validation!=''%] data-validation="[%$setting[i].config_validation%]"[%/if%][%if $setting[i].config_validation_msg!=''%] data-validation-msg="[%$setting[i].config_validation_msg%][%/if%]" />
									</div>
								</div>
								[%/if%]
								[%if $setting[i].config_type=='selectkey'%]
								<div class="form-group [%$setting[i].config_name%] [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label">[%$setting[i].config_title%]</label>
									<div class="col-sm-9">
										<select class="selectpicker form-control" name="[%$setting[i].config_name%]" id="[%$setting[i].config_name%]" data-size="8" title="[%$setting[i].config_content%]">
											[%forlist from=$setting[i].selectkey key=ii%]
											<option [%$setting[i].selectkey[ii].selected%] value="[%$setting[i].selectkey[ii].key%]">[%$setting[i].selectkey[ii].name%]</option>
											[%/forlist%]
										</select>
									</div>
								</div>
								[%/if%]
								[%if $setting[i].config_type=='bool'%]
								<div class="form-group [%$setting[i].config_name%] [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label">[%$setting[i].config_title%]</label>
									<div class="col-sm-6 pt7">
										[%forlist from=$setting[i].selectkey key=ii%]
										<input type="radio" name="[%$setting[i].config_name%]" value="[%$setting[i].selectkey[ii].key%]" [%$setting[i].selectkey[ii].tab%] [%$setting[i].selectkey[ii].selected%]/><span class="pr10">[%$setting[i].selectkey[ii].name%]</span>
										[%/forlist%]
									</div>
								</div>
								[%if $setting[i].config_content!=''%]
								<div class="form-group [%$setting[i].config_name%]  [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label"></label>
									<div class="col-sm-9"><span class="input_exp"> <span class="exp_icon espcms_icon_fa espcms_icon_fa-exclamation-circle" aria-hidden="true" ></span>[%$setting[i].config_content%]</span></div>
								</div>
								[%/if%]
								[%/if%]
								[%if $setting[i].config_type=='int'%]
								<div class="form-group [%$setting[i].config_name%] [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label">[%$setting[i].config_title%]</label>
									<div class="col-sm-9">
										<input type="text" name="[%$setting[i].config_name%]" value="[%$setting[i].config_value%]" class="form-control" id="[%$setting[i].config_name%]" placeholder="[%$setting[i].config_content%]" title="[%$setting[i].config_content%]" [%$setting[i].link_validation%][%if $setting[i].config_isvalidation==0%] data-isvalidation="true"[%/if%][%if $setting[i].config_minlength>0%] data-validation-minlength="[%$setting[i].config_minlength%]"[%/if%][%if $setting[i].config_maxlength>0%] data-validation-maxlength="[%$setting[i].config_maxlength%]"[%/if%][%if $setting[i].config_validation!=''%] data-validation="[%$setting[i].config_validation%]"[%/if%][%if $setting[i].config_validation_msg!=''%] data-validation-msg="[%$setting[i].config_validation_msg%][%/if%]"/>
									</div>
								</div>
								[%/if%]
								[%if $setting[i].config_type=='font'%]
								<div class="form-group [%$setting[i].config_name%] [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label">[%$setting[i].config_title%]</label>
									<div class="col-sm-9">
										<input type="text" name="[%$setting[i].config_name%]" value="[%$setting[i].config_value%]" class="form-control" id="[%$setting[i].config_name%]" placeholder="[%$setting[i].config_content%]" title="[%$setting[i].config_content%]" [%$setting[i].link_validation%][%if $setting[i].config_isvalidation==0%] data-isvalidation="true"[%/if%][%if $setting[i].config_minlength>0%] data-validation-minlength="[%$setting[i].config_minlength%]"[%/if%][%if $setting[i].config_maxlength>0%] data-validation-maxlength="[%$setting[i].config_maxlength%]"[%/if%][%if $setting[i].config_validation!=''%] data-validation="[%$setting[i].config_validation%]"[%/if%][%if $setting[i].config_validation_msg!=''%] data-validation-msg="[%$setting[i].config_validation_msg%][%/if%]" />
									</div>
								</div>
								[%/if%]
								[%if $setting[i].config_type=='password'%]
								<div class="form-group [%$setting[i].config_name%] [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label">[%$setting[i].config_title%]</label>
									<div class="col-sm-9">
										<input type="password" name="[%$setting[i].config_name%]" value="[%$setting[i].config_value%]" class="form-control" id="[%$setting[i].config_name%]" placeholder="[%$setting[i].config_content%]" title="[%$setting[i].config_content%]" [%$setting[i].link_validation%][%if $setting[i].config_isvalidation==0%] data-isvalidation="true"[%/if%][%if $setting[i].config_minlength>0%] data-validation-minlength="[%$setting[i].config_minlength%]"[%/if%][%if $setting[i].config_maxlength>0%] data-validation-maxlength="[%$setting[i].config_maxlength%]"[%/if%][%if $setting[i].config_validation!=''%] data-validation="[%$setting[i].config_validation%]"[%/if%][%if $setting[i].config_validation_msg!=''%] data-validation-msg="[%$setting[i].config_validation_msg%][%/if%]" />
									</div>
								</div>
								[%/if%]
								[%if $setting[i].config_type=='img'%]
								<div class="form-group [%$setting[i].config_name%] [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label">[%$setting[i].config_title%]</label>
									<div class="col-sm-9" id="[%$setting[i].config_select_value%]_list">
										 <input type="hidden" name="[%$setting[i].config_name%]" id="[%$setting[i].config_name%]" value="[%$setting[i].config_value%]" validation="true" data-validation-botton="[%$setting[i].config_select_value%]" [%$setting[i].link_validation%][%if $setting[i].config_isvalidation==0%] data-isvalidation="true"[%/if%] [%if $setting[i].config_validation!=''%] data-validation="[%$setting[i].config_validation%]"[%/if%] data-validation-msg="[%$setting[i].config_validation_msg%]" />
										 [%if $setting[i].config_value%]
										 <a id="[%$setting[i].config_select_value%]" onclick="javascript:parent.espcms_dialog('[%pack:filemanage_pack-espcms_filenamage_images_dialog_title%]', 'iframe', '[%$fileDialog%]&displaytype=pic&upfileType=image&selectnum=1&inputname=[%$setting[i].config_name%]&updatediv=[%$setting[i].config_select_value%]', '830px', '540px', 'dialogname');" class="btn-image" style="display: none;"></a>
										 <ul class="espcms_pic_onlyList" id="[%$setting[i].config_name%]_ul" input_id="[%$setting[i].config_name%]" select_id="[%$setting[i].config_select_value%]">
											 <li>
												 <p class="uploadimgWrap"><img src="[%$ESPCMS_URL%][%$setting[i].config_value%]" width="100" height="100"/></p>
												 <div class="upload_file_panel" style="height: 0px;"><span class="cancel"></span></div>
											 </li>
										 </ul>
										 [%else%]
										 <a id="[%$setting[i].config_select_value%]" onclick="javascript:parent.espcms_dialog('[%pack:filemanage_pack-espcms_filenamage_images_dialog_title%]', 'iframe', '[%$fileDialog%]&displaytype=pic&upfileType=image&selectnum=1&inputname=[%$setting[i].config_name%]&updatediv=[%$setting[i].config_select_value%]', '830px', '540px', 'dialogname');" class="btn-image"></a>
										 [%/if%]
									</div>
								</div>
								[%/if%]
								[%if $setting[i].config_type=='text'%]
								<div class="form-group [%$setting[i].config_name%] [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label">[%$setting[i].config_title%]</label>
									<div class="col-sm-9">
										<textarea name="[%$setting[i].config_name%]" style="width:100%;height:[%$setting[i].config_style_height%]px" id="[%$setting[i].config_name%]" title="[%$setting[i].config_content%]" [%$setting[i].link_validation%][%if $setting[i].config_isvalidation==0%] data-ued="1" data-isvalidation="true"[%/if%][%if $setting[i].config_minlength>0%] data-validation-minlength="[%$setting[i].config_minlength%]"[%/if%][%if $setting[i].config_maxlength>0%] data-validation-maxlength="[%$setting[i].config_maxlength%]"[%/if%][%if $setting[i].config_validation!=''%] data-validation="[%$setting[i].config_validation%]"[%/if%] data-validation-msg="[%$setting[i].config_validation_msg%]" >[%$setting[i].config_value%]</textarea>
									</div>
								</div>
								<script type="text/javascript">
									$(document).ready(function () {
										UE.getEditor('[%$setting[i].config_name%]', {toolbars: miniconfing});
									});
								</script>
								[%/if%]
								[%if $setting[i].config_type=='color'%]
								<div class="form-group [%$setting[i].config_name%] [%$setting[i].isshow%]">
									<label class="col-sm-2 control-label">[%$setting[i].config_title%]</label>
									<div class="col-sm-9">
										<input type="text" name="[%$setting[i].config_name%]" value="[%$setting[i].config_value%]" class="form-control" id="[%$setting[i].config_name%]" placeholder="[%$setting[i].config_content%]" title="[%$setting[i].config_content%]" />
									</div>
								</div>
								<script type="text/javascript">
									$(document).ready(function () {
										$('#[%$setting[i].config_name%]').EasySiteColorSelect();
									});
								</script>
								[%/if%]
							[%/forlist%]
							[%if $config_category_id==8%]
								<div class="form-group EMAIL_PASSWORD">
									<label class="col-sm-2 control-label"></label>
									<div class="col-sm-9">
										<button type="button" class="btn btn-orange min-w-150 espcms_demo_mail_send">[%pack:botton_pack-espcms_botton_demo_send_mail%]</button>
									</div>
								</div>
							[%/if%]
							<div class="form_button">
								<button type="submit" class="btn btn-green min-w-150" formmethod="POST">[%pack:botton_pack-espcms_botton_save_ok%]</button>
								[%if $config_category_id>1%]
								<button type="button" class="btn btn-lightgray min-w-150 espcms_save_cancel">[%pack:botton_pack-espcms_botton_save_cancel_edit%]</button>
								[%/if%]
							</div>
						</form>
					</div>
				</div>
				<!--正文_end-->
			</div>
		</div>
		[%link file="public/load.html"%]
		[%link file="public/load_height.html"%]
	</body>
</html>
